package br.ufpe.cin.dsoa.qos.service.registry.impl;

import java.util.List;

public interface Statistics {
	
	public double getGeometricMean();
	public double getMax();
	public double getMean();
	public double getMin();
	public double getVariance();
	public double getSumsq();
	public double getPercentile(double p);
	public List<Data> getData();
	
	//Event window
	public double getGeometricMean(int eventWindow);
	public double getMax(int eventWindow);
	public double getMean(int eventWindow);
	public double getMin(int eventWindow);
	public double getVariance(int eventWindow);
	public double getSumsq(int eventWindow);
	public double getPercentile(int eventWindow, double p);
	
	//Time window (in seconds)
	public double getGeometricMean(long secondsAgo);
	public double getMax(long secondsAgo);
	public double getMean(long secondsAgo);
	public double getMin(long secondsAgo);
	public double getVariance(long secondsAgo);
	public double getSumsq(long secondsAgo);
	public double getPercentile(long secondsAgo, double p);
}
